import React from "react"
import {History} from 'history'
export interface RouterContextProps{
    history: History
    pathname:()=>string
    getRouterMatchItem:(rules: any)=>any
}

export const RouterContext = React.createContext<RouterContextProps>({
    getRouterMatchItem: function (rules: any) {
        throw new Error("Function not implemented.")
    },
    history: undefined,
    pathname: ()=>''
})